﻿package game.objects.num {
	
	import flash.display.MovieClip;
	import flash.events.Event;
	
	
	public class FiveK extends MovieClip {
		
		public function FiveK(x:int, y:int) {
			this.addEventListener(Event.ENTER_FRAME, shade);
			this.x = x;
			this.y = y;
		}
		
		public function shade(e:Event):void {
			this.alpha -= 0.07;
			this.y -= 1;
			if (this.alpha < 0.01)
			{
				this.remove();
			}
		}
		
		public function remove():void {
			this.removeEventListener(Event.ENTER_FRAME, shade);
			parent.removeChild(this);
		}
	}
	
}
